import request from '@/utils/request'

export function getPolicyById(query) {
  return request({
    url: '/policy/id',
    method: 'get',
    params: query
  })
}
export function getAllOrgan(query) {
  return request({
    url: '/publishOrgan/list',
    method: 'get',
    params: query
  })
}
export function submit(query) {
  console.log(query.keyword);
  // query.keyword = query.keyword.join(';');
  return request({
    url: '/policy/add',
    method: 'post',
    data: query
  })
}
